#include "global.h"
#include "drawingstudio.h"
#include "drawingsurface.h"
#include "drawingdesigner.h"

QColor VgBgColor = QColor(0, 170, 127);
QColor VgPenColor = QColor(255, 255, 255);
int VgPenWidth = 3;

namespace ShUi
{

DrawingStudio* getStudio()
{
    return qobject_cast<DrawingStudio*>(qApp);
}

DrawingSurface* getSurface()
{
    return getDesigner()->surface();
}

DrawingDesigner* getDesigner()
{
    return getStudio()->designer();
}

} // namespace ShUi
